//
//  WZLeftItemCell.m
//  WZ
//
//  Created by caoly on 14-9-15.
//  Copyright (c) 2014年 WZ. All rights reserved.
//

#import "WZLeftItemCell.h"

@implementation WZLeftItemCell

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setConfigDictionary:(NSDictionary *)dictionary {

    _configDictionary = dictionary;
    self.icon_imageView.image = [UIImage imageNamed:self.configDictionary[@"d_image"]];
    self.title_Label.text     = self.configDictionary[@"title"];
    self.back_View.backgroundColor = [UIColor clearColor];

}

- (void)setDown:(BOOL)isDown andConfigDictionary:(NSDictionary *)dictionary
{
    self.configDictionary = dictionary;

    self.title_Label.text     = self.configDictionary[@"title"];

        if(isDown)
        {
            self.icon_imageView.image = [UIImage imageNamed:self.configDictionary[@"d_image"]];
            self.title_Label.textColor = [UIColor colorWithRed:0.380 green:0.616 blue:0.647 alpha:1.000];
//            self.back_View.backgroundColor = [UIColor clearColor];
            
        }
        else
        {
            self.icon_imageView.image = [UIImage imageNamed:self.configDictionary[@"u_image"]];
            self.title_Label.textColor = [UIColor colorWithRed:0.224 green:0.220 blue:0.196 alpha:1.000];
//            self.back_View.backgroundColor = [UIColor clearColor];
            
        }
  }

@end
